package com.ruoyi.web.controller.qlyy.controller.premovein;

import com.ruoyi.common.annotation.Anonymous;
import com.ruoyi.web.controller.qlyy.domain.premovein.Company;
import com.ruoyi.web.controller.qlyy.service.SysDataHandleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

import static com.ruoyi.common.config.datasource.DynamicDataSourceContextHolder.log;

@Anonymous//忽略权限验证
@Controller
@ResponseBody
@RequestMapping("/BusinessTest")
public class SysDataHandleController {

    @Autowired
    private SysDataHandleService sysDataHandleServiceImpl;


    @RequestMapping("/test")
    public List<Company> test(@RequestBody Company company) {
        log.info("test");
        return sysDataHandleServiceImpl.getCompanyList(company);
    }
}
